package com.itbac.openfeign.user;

import com.itbac.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author: BacHe
 * @email: 1218585258@qq.com
 * @Date: 2021/4/22 0:14
 */
@FeignClient("service-user")
@RequestMapping("/user")
public interface UserClient {

    @GetMapping("/getOne/{uid}")
    public User getOne(@PathVariable("uid") Integer uid);
}
